import QtQuick
import QtQuick.Controls
Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    property bool working: false


    Row{
        Loader{
            id: loader
            sourceComponent: component
        }

        CheckBox{
            visible: true
            text: "工作联动"
            onCheckedChanged: working = checked
        }
    }


    Component{
        id: component

        CheckBox{
            visible: true

            text: "工作"
            onCheckedChanged: working = checked
            checked: working
        }
    }


    Text{
        anchors.centerIn: parent
        text: "工作：" + working
    }
}
